<template>
    <page-body >
        <view class="page" >
    <view class="flex flex-direction flex-wrap align-stretch justify-center benben-position-layout flex againSetUpPayPwd_flex_0"    :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
            <view   class='flex flex-wrap align-stretch justify-between againSetUpPayPwd_fd0_0'      >
            <view   class='flex flex-wrap align-center againSetUpPayPwd_fd0_0_c0'   @tap.stop="handleJumpDiy" data-type="back" data-url="1"   >
        <text class='fu-iconfont2  againSetUpPayPwd_fd0_0_c0_c0'  >&#xe794;</text>
</view>
    <view   class='flex flex-wrap align-center'      >
        </view>
    <view   class='flex align-center justify-end againSetUpPayPwd_fd0_0_c2'      >
        </view>
</view>

        </view>
<view :style="{height: (88+StatusBarRpx)+'rpx'}"  ></view>

 <view class="flex flex-direction flex-wrap align-center benben-flex-layout"    >
            <view   class='flex flex-wrap align-center againSetUpPayPwd_fd1_0'      >
        <text class='againSetUpPayPwd_fd1_0_c0'  >1</text>
    <view   class='flex flex-wrap align-center againSetUpPayPwd_fd1_0_c1'      >
        </view>
<text class='againSetUpPayPwd_fd1_0_c2'  >2</text>
    <view   class='flex flex-wrap align-center againSetUpPayPwd_fd1_0_c3'      >
        </view>
<text class='againSetUpPayPwd_fd1_0_c4'  >3</text>
</view>
<text class='againSetUpPayPwd_fd1_1'  >设置支付密码</text>
<text class='againSetUpPayPwd_fd1_2'  >请设置新支付密码</text>
<benben-digital-password  :box-num='6' mode='password' class-name='flex flex align-center justify-center againSetUpPayPwd_fd1_3'  @confirm="checkCodeeyFunc()"  v-model="newPassword" :init-open.sync="xianshi">
<template #default="{ content, active, index }">
<view :key="index" v-if="active" class="flex align-center justify-center active-digital-password againSetUpPayPwd_flex_password_active_fd1_3" >
  {{ content }}
</view>
<view :key="index" v-else class="flex align-center justify-center againSetUpPayPwd_flex_password_active_fd1_3" >
  {{ content }}
</view>
</template>
</benben-digital-password>
<text class='againSetUpPayPwd_fd1_4'  >支付密码为6位数字，用户提现、设置密保、添加银行卡等 操作，可保障资金安全</text>
</view>
        

    
    
        </view>
    </page-body>
</template>
<script>
    import {validate} from '@/common/utils/validate.js'
    
    export default {
        components:{},
        
        
        data(){
			return {"newPassword":"","xianshi":true,"type":"1","oldPayPwd":"123456a"};
		},
		computed:{
            
		},
		watch:{},
		onLoad(options){
            let {type,oldPayPwd}=options
if (type !== undefined) this.type = type
if (oldPayPwd !== undefined) this.oldPayPwd = oldPayPwd
		},
        onUnload() {
                
        },
		onReady(){
            
		},
		onShow(){
            
		},
		onHide(){
            
		},
		onResize(){
            
		},
		onPullDownRefresh(){
            
		},
		onReachBottom(e){
            
		},
		onPageScroll(e){
            
		},
		methods:{
                            //校验验证码
                 checkCodeeyFunc(){
                                if(this.oldPayPwd == this.newPassword){
                 this.$message.info('旧密码与新密码不能一致');
                 return false;
            }
    this.$urouter.navigateTo(`/pages/xtsz/confirmNewPayPwd/confirmNewPayPwd?type=${this.type}&newPwd=${this.newPassword}&oldPwd=${this.oldPayPwd}`);
                }
		}
    };
</script> 
<style lang="scss" scoped>
           .page{
            width: 100vw;
            overflow-x: hidden;
            min-height: calc(100vh - var(--window-bottom));
            background:#fff;background-size: 100% auto;
        }
    .againSetUpPayPwd_flex_0{
        background:#fff;width:750rpx;height:88rpx;overflow:hidden;z-index:10;top:0rpx;background-size:100% auto !important;
    }
    .againSetUpPayPwd_fd0_0_c2{
        padding:0rpx 0rpx 0rpx 0rpx;width:100rpx;
    }
    .againSetUpPayPwd_fd0_0_c0_c0{
        font-size:36rpx;font-weight:400;color:#333;
    }
    .againSetUpPayPwd_fd0_0_c0{
        width:100rpx;
    }
    .againSetUpPayPwd_fd0_0{
        padding:0rpx 32rpx 0rpx 32rpx;line-height:88rpx;
    }
    .againSetUpPayPwd_fd1_4{
        text-align:center;padding:0rpx 32rpx 0rpx 32rpx;font-size:24rpx;color:rgba(153, 153, 153, 1);
    }
    .againSetUpPayPwd_flex_password_active_fd1_3{
        border:1px solid rgba(217, 217, 217, 1);width:100rpx;height:100rpx;
    }
    ::v-deep .againSetUpPayPwd_fd1_3{
        width:750rpx;height:160rpx;
    }
    .againSetUpPayPwd_fd1_2{
        line-height:36rpx;font-size:24rpx;font-weight:400;color:#333333;margin:40rpx 0rpx 0rpx 0rpx;
    }
    .againSetUpPayPwd_fd1_1{
        font-size:36rpx;font-weight:700;color:#333333;margin:64rpx 0rpx 0rpx 0rpx;
    }
    .againSetUpPayPwd_fd1_0_c4{
        background:rgba(191, 191, 191, 1);line-height:36rpx;font-size:32rpx;font-weight:500;color:#fff;border-radius:50rpx 50rpx 50rpx 50rpx;background-size:100% auto !important;padding:8rpx 16rpx 8rpx 16rpx;
    }
    .againSetUpPayPwd_fd1_0_c3{
        background:rgba(191, 191, 191, 1);width:118rpx;height:4rpx;border-radius:0rpx 0rpx 0rpx 0rpx;
    }
    .againSetUpPayPwd_fd1_0_c2{
        background:var(--benbenbgColor3);line-height:36rpx;font-size:32rpx;font-weight:500;color:#fff;border-radius:50rpx 50rpx 50rpx 50rpx;background-size:100% auto !important;padding:8rpx 16rpx 8rpx 16rpx;
    }
    .againSetUpPayPwd_fd1_0_c1{
        background:var(--benbenbgColor3);width:118rpx;height:4rpx;border-radius:0rpx 0rpx 0rpx 0rpx;
    }
    .againSetUpPayPwd_fd1_0_c0{
        background:var(--benbenbgColor3);line-height:36rpx;font-size:32rpx;font-weight:500;color:var(--benbenFontColor3);border-radius:50rpx 50rpx 50rpx 50rpx;background-size:100% auto !important;padding:8rpx 16rpx 8rpx 16rpx;
    }
    .againSetUpPayPwd_fd1_0{
        margin:143rpx 0rpx 0rpx 0rpx;
    }
</style>